package com.young.dom4j;

import java.math.BigDecimal;

/**
 * @Author: young
 * @Date: 2021-12-05 14:53
 * @Description:
 */
public class Book {
	private String id;
	private String name;
	private Double price;
	private String author;
	
	public Book() {
	}
	
	public Book(String id, String name, Double price, String author) {
		this.id = id;
		this.name = name;
		this.price = price;
		this.author = author;
	}
	
	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Double getPrice() {
		return price;
	}
	
	public void setPrice(Double price) {
		this.price = price;
	}
	
	public String getAuthor() {
		return author;
	}
	
	public void setAuthor(String author) {
		this.author = author;
	}
	
	@Override
	public String toString() {
		return "Book{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", price=" + price +
				", author='" + author + '\'' +
				'}';
	}
}
